package cn.jsj.invite.controller;

import cn.jsj.invite.interceptor.swich.PassToken;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@CrossOrigin
public class DispatcherLogin {

    @PassToken
    @RequestMapping(path = "/Login",method = RequestMethod.GET)
    public String loginView() {
        System.out.println("==============login==================");
        return "forward:/index";
    }

}
